package com.pan.enume;


public enum ResultEnum {
    SUCCESS(200,"成功"),
    SERVER_ERROR(500,"服务器错误"),
    CLIENT_ERROR(400,"客户端错误"),
    USER_NOT_FOUND_ERROR(403,"找不到该用户信息"),
    NOT_FOUND_ERROR(403,"找不到该信息"),
    PARAMETER_ERROR(403,"参数错误"),
    NOT_LOGIN_ERROR(403,"无登录信息错误"),
    PASSWORD_ERROR(403,"密码错误");
    Integer code;
    String message;

    private ResultEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
